package combine.order.model;

import java.util.ArrayList;
import java.util.List;

public class DataBase {

	public static final List<ProductType> productTypes = new ArrayList<ProductType>() {
		{
			add(new ProductType(1, "拉链类"));
			add(new ProductType(2, "俊织"));
		}
	};

	public static final List<ProductColor> productColors = new ArrayList<ProductColor>() {
		{
			add(new ProductColor(1, "卡其"));
			add(new ProductColor(2, "宝蓝"));
			add(new ProductColor(3, "浅灰"));
		}
	};

	public static final List<ProductSupply> productSupplys = new ArrayList<ProductSupply>() {
		{
			add(new ProductSupply(1, "YCC"));
			add(new ProductSupply(2, "LY"));
		}
	};

	public static final List<ProductLength> productLengths = new ArrayList<ProductLength>() {
		{
			add(new ProductLength(1, "S", 16, "CM", "16CM"));
			add(new ProductLength(2, "M", 18, "CM", "18CM"));
			add(new ProductLength(3, "L", 20, "CM", "20CM"));
			add(new ProductLength(4, "XL", 22, "CM", "22CM"));
		}
	};

	public static final List<MaterialProductBase> productBases = new ArrayList<MaterialProductBase>() {
		{
			add(new MaterialProductBase(1, "L004", "金属拉链", "根", 1,
					productTypes.get(0)));
			add(new MaterialProductBase(2, "WV0225", "双经双纬帆布", "米", 2,
					productTypes.get(1)));
		}
	};

	public static final List<MaterialProduct> products = new ArrayList<MaterialProduct>() {
		{
			add(new MaterialProduct(1, 1, 1, 1, 1, 1, 100, 0, "",
					productColors.get(0), productLengths.get(0),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(2, 1, 2, 1, 1, 1, 100, 0, "",
					productColors.get(0), productLengths.get(1),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(3, 1, 3, 1, 1, 1, 100, 0, "",
					productColors.get(0), productLengths.get(2),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(4, 1, 4, 1, 1, 1, 100, 0, "",
					productColors.get(0), productLengths.get(3),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(5, 2, 1, 1, 1, 1, 100, 0, "",
					productColors.get(1), productLengths.get(0),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(6, 2, 2, 1, 1, 1, 100, 0, "",
					productColors.get(1), productLengths.get(1),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(7, 2, 3, 1, 1, 1, 100, 0, "",
					productColors.get(1), productLengths.get(2),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(8, 2, 4, 1, 1, 1, 100, 0, "",
					productColors.get(1), productLengths.get(3),
					productSupplys.get(0), productTypes.get(0),
					productBases.get(0), 500, 500, 0));
			add(new MaterialProduct(9, 1, 0, 2, 2, 2, 5000, 2000, "",
					productColors.get(0), null, productSupplys.get(1),
					productTypes.get(1), productBases.get(1), 500, 500, 0));
			add(new MaterialProduct(10, 2, 0, 2, 2, 2, 5000, 2000, "",
					productColors.get(1), null, productSupplys.get(1),
					productTypes.get(1), productBases.get(1), 500, 500, 0));
		}
	};

	public static final List<FinishedProduct> finishedProducts = new ArrayList<FinishedProduct>() {
		{
			add(new FinishedProduct(1, "Style1"));
			add(new FinishedProduct(2, "Style2"));
		}
	};
	
	public static final List<BOMItem> bomItems = new ArrayList<BOMItem>();

	public static final List<Order> orders = new ArrayList<Order>();

	public static final List<OrderItem> orderItems = new ArrayList<OrderItem>();
	
	public static final List<PurchaseOrder> purchaseOrders = new ArrayList<PurchaseOrder>();
	
	public static final List<PurchaseOrderItem> purchaseOrderItems = new ArrayList<PurchaseOrderItem>();
	
	public static final List<BOMItemExtra> extras = new ArrayList<BOMItemExtra>();
}
